package cn.juque.systemservice.api.dto.employee;

import cn.juque.common.abstracts.AbstractRequestDTO;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @author nuoka
 * @version 1.0.0
 * <li>IntelliJ IDEA</li>
 * <li></li>
 * @date 2021/10/1 23:35
 **/
@Data
public class EmployeeUpdatePasswordDTO extends AbstractRequestDTO {

    /**
     * 员工ID
     */
    @NotEmpty(message = "员工ID不能为空")
    @Size(message = "员工ID不能超过{max}个字符", max = 32)
    private String employeeId;

    /**
     * 原密码
     */
    @NotEmpty(message = "原密码不能为空")
    @Size(message = "员工密码不能超过{max}个字符", max = 20)
    private String password;

    /**
     * 新密码
     */
    @NotEmpty(message = "新密码不能为空")
    @Size(message = "员工密码不能超过{max}个字符", max = 20)
    private String newPassword;

    /**
     * 确认密码
     */
    @NotEmpty(message = "确认密码不能为空")
    @Size(message = "确认密码不能超过{max}个字符", max = 20)
    private String confirmPassword;
}
